package com.api.shopapi.service;

import com.api.shopapi.entity.CommandCenter;
import com.api.shopapi.entity.PracticeSite;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommandCenterService {


    int insert(CommandCenter commandCenter);


    int delete(String commandCenterCode);


    int update( CommandCenter commandCenter);


    CommandCenter getByCommandCenterCode(String commandCenterCode);

    CommandCenter getByUserCode(String userCode);

    /**
     * 所有指挥中心
     * */
    PageInfo<CommandCenter> PageByGovernmentCode(int pageIndex, int pageSize, String governmentCode, int status);


    List<CommandCenter> listByGovernmentCode(String governmentCode, int status);

}
